package cn.hengzhu.main_manager.repository.dao;

import cn.hengzhu.main_manager.repository.domain.CustomersAmount;
import cn.hengzhu.main_manager.repository.domain.CustomersAmountExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CustomersAmountMapper {
	/**
	 *
	 * @mbg.generated
	 */
	long countByExample(CustomersAmountExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int deleteByExample(CustomersAmountExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int deleteByPrimaryKey(Integer amountId);

	/**
	 *
	 * @mbg.generated
	 */
	int insert(CustomersAmount record);

	/**
	 *
	 * @mbg.generated
	 */
	int insertSelective(CustomersAmount record);

	/**
	 *
	 * @mbg.generated
	 */
	List<CustomersAmount> selectByExample(CustomersAmountExample example);

	/**
	 *
	 * @mbg.generated
	 */
	CustomersAmount selectByPrimaryKey(Integer amountId);

	CustomersAmount selectByOpenid(String openId);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByExampleSelective(@Param("record") CustomersAmount record,
			@Param("example") CustomersAmountExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByExample(@Param("record") CustomersAmount record, @Param("example") CustomersAmountExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByPrimaryKeySelective(CustomersAmount record);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByPrimaryKey(CustomersAmount record);

	/**
	 * @author liuCheng
	 * @since 2019年1月2日 下午4:30:36
	 * @param customersAmountList
	 * @return 批量更新资金账户
	 */
	int updateUserAmount(List<CustomersAmount> customersAmountList);

	/**
	 * @author liuCheng
	 * @since 2019年1月2日 下午4:30:58
	 * @param customersAmount
	 * @return 单个更新资金账户
	 */
	int updateUserAmountOne(CustomersAmount customersAmount);
}